package com.ylw.project.constant;

/**
 * ui资源的文件后缀
 */
public enum UIResources {
    HML(".htm"),
    HTML(".html"),
    WHTML(".whtml"),
    CSS(".css"),
    JS(".js"),
    JPG(".jpg"),
    PNG(".png"),
    ;
    String value;

    UIResources(String value) {
        this.value = value;
    }

    public static boolean endWith(String value){
        for (UIResources ui : UIResources.values()) {
            if(value.endsWith(ui.value)){
                return true;
            }
        }
        return false;
    }
}
